/**
 * @从终端数输入一个数字，用英语显示
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>
#include <cs50.h>

int main(int argc, char *argv[]) {
	int number;
	int digits[10];
	char s;

	printf("请输入一个数字：");
	number = GetInt();


	while (number > 0){
		digits = number % 10;

		switch(s) {
			case 0: 
				printf("zero"); break;
			case 1: 
				printf("one"); break;
			case 2: 
				printf("two"); break;
			case 3: 
				printf("there"); break;
			case 4: 
				printf("four"); break;
			case 5: 
				printf("five"); break;
			case 6: 
				printf("six"); break;
			case 7: 
				printf("seven"); break;
			case 8: 
				printf("eight"); break;
			case 9: 
				printf("nine"); break;
			default: 
				break;
		}
		
		printf("%c ", s);
		number = number / 10;
	}

	printf("\n");

	return 0;
}
